package com.h2cloud.Proxy;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @Package: com.h2cloud.Proxy
 * @ClassName: TestAspect
 * @Author: wulongkai
 * @CreateTime: 2024/8/27 14:24
 * @Description:
 */
@Aspect
@Component
public class TestAspect {

    @Pointcut("execution(* com.h2cloud.Proxy.TestServiceImpl.*(..))")
    public void methodPointCut() {

    }

    @Around("methodPointCut()")
    public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable {
        System.out.println("proxy...");
        return joinPoint.proceed();
    }
}
